<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html   xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:rich="http://richfaces.org/rich"
        xmlns:a4j="http://richfaces.org/a4j">
    
    <h:head></h:head>
    <h:body>
        
        <rich:panel header="Menü">
            <h:form>
                <h:panelGrid>
                    <a4j:commandButton value="Block 1 und 2" render="block1, block2"/>
                    <a4j:commandButton value="Block 2 und 3" render="block2, block3"/>
                    <a4j:commandButton value="Block 1 und 3" render="block1, block3"/>
                    <a4j:commandButton value="Block 4 und 5" render="block4, block5"/>
                    <a4j:commandButton value="Z4" render="z4, z444"/>
                    <a4j:commandButton value="Z5" render="z5"/>
                </h:panelGrid>
            </h:form>
        </rich:panel>
        
        <rich:panel header="Blocks">
            <h:panelGrid columns="2">
                <h:outputLabel value="Block1: "/>
                <h:outputText value="#{seite.block1}" id="block1"/>
                <h:outputLabel value="Block2: "/>
                <h:outputText value="#{seite.block2}" id="block2"/>
                <h:outputLabel value="Block3: "/>
                <h:outputText value="#{seite.block3}" id="block3"/>
            </h:panelGrid>
        </rich:panel>
        
        <rich:panel header="Seite2">
            <ui:include src="seite2.xhtml"/>
        </rich:panel>
        
        <rich:panel header="Z4" id="z4">
            <rich:panel header="Z4v2" rendered="#{seite.z4Enabled}">
                <ui:include src="seite4.xhtml"/>
            </rich:panel>
        </rich:panel>
        <rich:panel header="Z5" id="z5">
            <rich:panel header="Z5v2" rendered="#{seite.z5Enabled}">
                <ui:include src="seite5.xhtml"/>
            </rich:panel>
        </rich:panel>
    </h:body>
</html>